<?php

return
[
    'menuPid'=>44,
    'table'=>'feedback',// 基于此表构建 代码
    'prefix'=>'primary',
    'orderByDesc'=>'id',
    'modelName'=>'FeedBack',//模块名
    'modelShowName'=>'游戏反馈管理', //HTML页面 显示的功能名称,例如: 订单, 相关名称有订单添加,订单编辑,订单删除,订单列表,订单管理, 同时,php代码中会有注释
    //字段处理
    "fields"=>
    [
        ['field'=>'question_type','type'=>'radio','title'=>'问题类型',"values"=>[['value'=>0,'title'=>'未知'],
            ['value'=>1,'title'=>'无法登录账号'],['value'=>2,'title'=>'游戏服无法连接'],['value'=>3,'title'=>'启动游戏闪退'],['value'=>4,'title'=>'游戏加载页面卡住']],'default'=>0],
        ['field'=>'status','type'=>'radio','title'=>'状态',"values"=>[['value'=>0,'title'=>'待处理'],
            ['value'=>1,'title'=>'已处理']],'default'=>0],
        ['field'=>'comment','type'=>'text','title'=>'备注'],
        ['field'=>'package_no','type'=>'varchar','title'=>'包号' ],
        ['field'=>'desc','type'=>'text','title'=>'详细说明'],
    ],
    'functions'=> //功能
    [
        ['name'=>'model','path'=>'app/Models'],
        ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>['insertDTO','updateDTO','searchDTO']],
        ['name'=>'service','path'=>'app/Services','methods'=>['paginate','insert','updateById','deleteById','deleteByIds','getById']],
        ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>['paginate','insert','update','delete','detail']],
        ['name'=>'layuiAdminPage',
            'output'=>'/code/yoyo-xm2-adminui/page/feedback',
            'pages'=>
            [
                ['page'=>'form','functions'=>[]],
                ['page'=>'index','functions'=>['insert','update','delete','batchDelete']],
            ]
        ],
        ['name'=>'route'],
        ['name'=>'menu','functions'=>['insert','update','delete','paginate','detail']],
    ],
];

// controller 中包应该含导入功能 , 默认xlsx导入,后期应该支持 csv , xls 导入

